<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" 
xmlns:p="http://primefaces.org/ui" xmlns:ui="http://java.sun.com/jsf/facelets">

	<!-- This component replaces the Primefaces p:messages component. -->
	<!-- It should only be used when FacesContext isn't available during messages setting.  -->
	
	<!-- Parameters: -->
	<!-- * messageContent: the content of the message -->
	<!-- * messageType: the type of the messages (among error, info); -->
	<!-- * rendered: boolean value to specify the rendering of the component, when set to false component will not be rendered. -->
	
	<!-- @author Clément HELIOU (clement.heliou@gmail.com) -->
	<!-- @since 1.0 -->
	
	<p:outputPanel layout="block" rendered="#{rendered}" styleClass="ui-messages ui-widget">
		<p:outputPanel layout="block" styleClass="ui-messages-#{messageType} ui-corner-all">
			<p:outputPanel styleClass="ui-messages-#{messageType}-icon" />
			<ul>
				<li>
					<p:outputPanel styleClass="ui-messages-#{messageType}-summary">
						#{messageContent}
					</p:outputPanel>
				</li>
			</ul>
		</p:outputPanel>
	</p:outputPanel>

</ui:composition>